package com.ezandroid.alphago.engine;

import java.util.Set;

/**
 * Stores a single move: a stone and any stones captured by it
 */
public class Move {

    private Stone mStone;
    private Set<Stone> mCaptured;
    private Intersection mKO;

    public Move(Stone s, Set<Stone> c) {
        mStone = s;
        mCaptured = c;
    }

    public Stone getStone() {
        return mStone;
    }

    public Set<Stone> getCaptured() {
        return mCaptured;
    }

    public void setKO(Intersection ko) {
        mKO = ko;
    }

    public Intersection getKO() {
        return mKO;
    }

    @Override
    public String toString() {
        return "Move{" +
                "mStone=" + mStone +
                ", mCaptured=" + mCaptured +
                '}';
    }
}
